package com.mym;

/**
 * @author miao
 * @version 1.0
 * @date 2025/4/18 14:27
 * @description
 */
public class Worker {
    private String name;
    private int age;
    private int salary;

    public Worker(String name, int age, int salary) {
        this.name = name;
        this.age = age;
        this.salary = salary;
    }

    public String getName() {
        return name;
    }

    public int getAge() {
        return age;
    }

    public int getSalary() {
        return salary;
    }

    @Override
    public String toString() {
        return "Worker{name='" + name + "', age=" + age + ", salary=" + salary + "}";
    }
}

